package com.cari.oa.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cari.oa.dao.BaseDao;
import com.cari.oa.dao.SoftAttachementDao;
import com.cari.oa.domain.SoftAttachementEntity;

@Service
@Transactional(rollbackFor = Exception.class)
public class SoftAttachementService extends BaseService<SoftAttachementEntity> {
	
	@Resource
	private SoftAttachementDao softAttachementDao;

	@Override
	public BaseDao<SoftAttachementEntity> getDao() {
		return softAttachementDao;
	}

	/**
	* Title: getByBugId
	* Description:获取某个bug的所有附件
	* @author    hjx 
	* @date       2013-2-1 
	* @param bugId
	* @return
	*/
	public List<SoftAttachementEntity> getByBugId(String bugId) {
		return softAttachementDao.getByBugId(bugId);
	}
}
